package com.myself.service;

import com.myself.entity.Permission;
import com.myself.entity.Role;
import com.myself.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description:
 *
 * @Author: Liuzemin
 * @Date: 2020/7/10 15:51
 */
public interface UserService extends BaseService<User> {
     User findByName(String username);

     List<Role> findRole(String username);

     List<Permission> findPermission(String username);

     void correlationRoles(Long userId, Long... roleId);

     void deleteAllUserRoles(Long id);
}
